<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../../tpl/head.jsp" %>
<link rel="stylesheet" href="statics/css/BasicData/tpl/searchs.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <ul class="layui-tab-title">
                            <li class="layui-this">客户</li>
                            <li class="">内部联系人</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <dl class="layui-card">
                                    <dd class="layui-card-body">
                                        <form class="layui-form layui-form-pane">
                                            <div class="layui-form-item">
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">类型</label>
                                                    <div class="layui-input-inline">
                                                        <div id="sklx" class="xm-select-demo"></div>
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">所属业务员</label>
                                                    <div class="layui-input-inline">
                                                        <div id="skssywy" class="xm-select-demo"></div>
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">名称</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="skmc" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">客户编码</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="kfbm" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <label class="layui-form-label">客户简称</label>
                                                    <div class="layui-input-inline">
                                                        <input type="text" name="kfjc" autocomplete="off" class="layui-input">
                                                    </div>
                                                </div>
                                                <div class="layui-inline">
                                                    <button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="filcustormer" id="searchcustomer">搜索客户</button>
                                                    <button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="filcontacts" id="searchcontacts">搜索联系人</button>
                                                </div>
                                            </div>
                                        </form>

                                    </dd>
                                    <dd class="layui-card-body">

                                        <fieldset class="layui-elem-field layui-field-title">
                                            <legend>客户信息</legend>
                                        </fieldset>
                                        <table class="layui-hide" id="table-customer" lay-filter="customerEvent"></table>
                                    </dd>
                                    <dd class="layui-card-body">

                                        <fieldset class="layui-elem-field layui-field-title">
                                            <legend>联系人信息</legend>
                                        </fieldset>
                                        <table class="layui-hide" id="table-contacts" lay-filter="contactsEvent"></table>
                                    </dd>
                                </dl>
                            </div>

                            <div class="layui-tab-item layui-form">
                                <div class="layui-inline">
                                    <label class="layui-form-label">内部联系人</label>
                                    <div class="layui-input-inline">
                                        <div id="customerRole" style="width: 100%;min-width: 1000px" class="xm-select-demo"></div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<style>
    .layui-form-pane .layui-form-label {
        width: auto;
    }

    .layui-form-item .layui-inline {
        margin: 0;
    }
    .layui-elem-field legend{font-size: 1em;}
    .layui-field-title{margin: 0;}
</style>
<%@ include file="../../tpl/foot.jsp" %>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/BasicData/email/searchs.js"></script>